﻿// =================================================================== 
// 数据访问层接口层(GDIT.Pattern)
//====================================================================
// 文件：ICollegeInfo.cs
// 项目名称：学院网站
// 创建时间：2012-08-08
// 负责人：ChenZhiGang
//引用DevExpress.Xpo程序集
// 程序集介绍：学院概况信息数据访问层接口
// ===================================================================
using GDIT.Model;
using DevExpress.Xpo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GDIT.Pattern
{
    public interface ICollegeInfo
    {
        /// <summary>
        /// 新增校园概况
        /// </summary>
        /// <param name="detailMenu">需要新增的校园概况对象</param>
        /// <returns>1：新增成功 2：新增失败</returns>
        int InsertCollegeInfo(Mtb_CollegeInfo collegeInfo);

        /// <summary>
        /// 删除校园概况
        /// </summary>
        /// <param name="detailMenu">需要删除的校园概况对象</param>
        /// <returns>1：删除成功 0:删除失败</returns>
        int DeleteCollegeInfo(Mtb_CollegeInfo collegeInfo);

        /// <summary>
        /// 更新校园概况
        /// </summary>
        /// <param name="detailMenu">需要更新的校园概况对象</param>
        /// <returns>1：更新成功 0：更新失败</returns>
        int UpdateCollegeInfo(Mtb_CollegeInfo collegeInfo);

        /// <summary>
        /// 查询单一校园概况
        /// </summary>
        /// <param name="CollegeInfo">需要查询的校园概况对象</param>
        /// <returns>所需的校园概况对象</returns>
        Mtb_CollegeInfo SelectCollegeInfoByCollegeInfo(string name);

        /// <summary>
        /// 查询所有的校园概况信息
        /// </summary>
        /// <param name="collegeType">类型</param>
        /// <returns>所有的校园概况信息</returns>
        XPCollection SelectAllCollegeInfo(string collegeType);
    }
}
